﻿using sx_windows.dial;
using sx_windows.pane.router;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace sx_windows
{
    public partial class MainForm : RouterSettingContract.View
    {
        public string GetPassword()
        {
            return this.routerPasswordEdit.Text;
        }

        public string GetRouterAddress()
        {
            return this.routerAddressEdit.Text;
        }

        public string GetUser()
        {
            return this.routerUserEdit.Text;
        }

        public void SetPassword(string password)
        {
            this.routerPasswordEdit.Text=password;
        }

        public void SetRouterAddress(string address)
        {
            this.routerAddressEdit.Text=address;
        }

        public void SetUser(string user)
        {
            this.routerUserEdit.Text=user;
        }
        private void saveRouterSettingBtn_Click(object sender, EventArgs e)
        {
            routerPresenter.SaveBtnClick();
        }
    }
}
